<?php

ignore_user_abort(true);
ini_set("memory_limit", 0);
set_time_limit(0);

$_SGLOBAL = $_SC = array();

$_SC['dbhost'] = "localhost";
$_SC['dbuser'] = "root";
$_SC['dbpw'] = "root";
$_SC['dbname'] = "api";
// 配置结束


require_once './class_mysql.php';
$db = new dbstuff();

$db->connect($_SC['dbhost'], $_SC['dbuser'], $_SC['dbpw'], $_SC['dbname']);
$count = 10000000;
while ( $count > 0 ) {
	$count --;
	$val = md5(rand(1, 10000) . time());
	$sql = "replace into qianwan(val) values('" . $val . "')";
	$db->query($sql);
}

echo '------------------------------over-------------------------------';
?>